﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xunjia_edit.aspx.cs" Inherits="DTcms.Web.admin.hangqing.xunjia_edit" ValidateRequest="false"%>

<%@ Import Namespace="DTcms.Common" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑询价信息</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" type="text/css" href="../../scripts/artdialog/ui-dialog.css" />
<link rel="stylesheet" type="text/css" href="../skin/icon/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/webuploader/webuploader.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../editor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../editor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="../../editor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();
        //初始化编辑器
        $(".editor").each(function (i) {
            var objId = $(this).attr("id");
            if (objId != "undefined") {
                var editor = UE.getEditor(objId, {
                    serverUrl: '../../../tools/upload_ajax.ashx',
                    initialFrameWidth: '100%',
                    initialFrameHeight: 350
                });
            }
        });
        $(".upload-album").InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=sysConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });
    });
</script>

<script>
    //修改关联客户
    function EditUser() {
        var d = top.dialog({
            title: '修改关联会员',
            url: 'dialog/dialog_user.aspx',
            width: 750,
            height: 450,
            data: window //传入当前窗口
        }).showModal();
        d.lb_username = $("#lbUserName");
        d.userid = $("#txtUserID");
        d.lianxiren = $("#txtLianxiren");
        d.mobile = $("#txtMobile");
    }     
</script>
</head>

<body class="mainbody" onload="init()">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="xunjia_list.aspx" class="back"><i class="iconfont icon-up"></i><span>返回列表页</span></a>
            <a href="../center.aspx"><i class="iconfont icon-home"></i><span>首页</span></a>
            <i class="arrow iconfont icon-arrow-right"></i>
            <a href="xunjia_list.aspx"><span>询价管理</span></a>
            <i class="arrow iconfont icon-arrow-right"></i>
            <span>编辑询价信息</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">询价管理</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>显示状态</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">显示</asp:ListItem>
                            <asp:ListItem Value="1">不显示</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>         
            <dl>
                <dt>关联会员</dt>
                <dd>
                    <asp:Label ID="lbUserName" runat="server" Text=""></asp:Label>
                    <asp:TextBox ID="txtUserID" runat="server" Text="0" Style="display:none"></asp:TextBox>
                    <a class="icon-btn" onclick="EditUser()"><i class="iconfont icon-edit"></i><span>设置关联会员</span></a>
                </dd>
            </dl>
            <dl>
                <dt>询价内容</dt>
                <dd>
                    <asp:TextBox ID="txtRemark" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" " style="width: 100%; height: 280px;"></asp:TextBox>
                    <span class="Validform_checktip"></span>
                </dd>
            </dl>
            <dl>
            <dt>图片相册</dt>
            <dd>
              <div class="upload-box upload-album"></div>
              <input type="hidden" name="hidFocusPhoto" id="hidFocusPhoto" runat="server" class="focus-photo" />
              <div class="photo-list">
                <ul>
                  <asp:Repeater ID="rptAlbumList" runat="server">
                    <ItemTemplate>
                    <li>
                      <input type="hidden" name="hid_photo_name" value="<%#Eval("id")%>|<%#Eval("original_path")%>|<%#Eval("thumb_path")%>" />
                      <div class="img-box" onclick="setFocusImg(this);">
                        <img src="http://<%#Eval("thumb_path")%>" bigsrc="<%#Eval("original_path")%>" />
                      </div>
                      <a href="javascript:;" onclick="delImg(this);">删除</a>
                    </li>
                    </ItemTemplate>
                  </asp:Repeater>
                </ul>
              </div>
            </dd>
          </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->

    </form>
</body>
</html>
